<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>조립PC의 대명사- PC Master~!~!</title>
<script type="text/javascript" src="/web/resources/js/member/member_update.js"></script>
</head>
<body>

<!-- 상단 로그인 패널을 include로 삽입 -->
<div style="position:absolute; left:50%; top:0px; width:1200px; height:80px; margin-left:-600px;z-index:1 ">
<%@ include file="../loginPanel.jsp" %>
</div>

<!-- 상단 및 좌측 메뉴(카테고리)리스트를 include로 삽입 -->
<div style="position:absolute; left:50%; top:0px; width:1200px; height:80px; margin-left:-600px;">
<%@ include file="../top.jsp" %>
</div>

<div style="position:absolute; left:50%; top:160px; width:1000px; height:80px; margin-left:-400px;">
<!--------------------------------------여기다가 각자 삽입------------------------------------>
<!-- 타이틀 -->
<table style="margin-left: 30px; margin-top:30px" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td><img src="/web/resources/images/bar_t_line.gif" border="0" alt="" /></td>
		<td style="color:333333;font-size:14px;font-weight:bold;">회원 정보 수정</td>
	</tr>
</table>	  
<!-- 타이틀 끝 --><br/>
<form name="updateForm" action="/web/member/update" method="post">
<!-- 받는 히든 타입 -->
<input type="hidden" id="birth" value="${profile.member_birth }" />
<input type="hidden" id="tel" value="${profile.member_phone }" />
<input type="hidden" id="phone" value="${profile.member_handphone }" />
<input type="hidden" id="upEmail" value="${profile.member_email }" />
<input type="hidden" id="zipcode" value="${profile.member_zipcode }" />
<input type="hidden" id="emailcheck" value="${profile.member_emailyn }" />
<input type="hidden" id="smscheck" value="${profile.member_smsyn }" />
<!-- 받는 히든 타입 끝 -->
<!-- 보내는 히든타입 -->
<input type="hidden" name="member_id" value="${profile.member_id }" />
<input type="hidden" name="member_birth"  />
<input type="hidden" name="member_phone"  />
<input type="hidden" name="member_handphone"  />
<input type="hidden" name="member_email"  />
<input type="hidden" name="member_zipcode"  />
<!-- 보내는 히든타입 끝 -->
아이디:${profile.member_id }<br/>
비밀번호:
<input type="password" name="member_password" size="15" maxlength="12" /><br/>
비밀번호확인:
<input type="password" name="member_repassword" size="15" maxlength="12" /><br/>
이름:
<input type="text" value="${profile.member_name }" name="member_name" size="15" maxlength="5" /><br/>
생년월일
<select id="birthYear" name="year" style="width: 54px; height: 23px; font-size: 10pt;">
	<c:forEach begin="1930" end="2013" step="1" var="cnt">
		<option value="${cnt }">${cnt }</option>
	</c:forEach>
</select>년 
<select id="birthMonth" name="month" style="width: 54px; height: 23px; font-size: 10pt;">
	<c:forEach begin="1" end="12" step="1" var="cnt">
  		<option value="${cnt }">${cnt }</option>
  </c:forEach> 
</select>월
<select id="birthDay" name="day" style="width: 54px; height: 23px; font-size: 10pt;">
	<c:forEach begin="1" end="31" step="1" var="cnt">
  		<option value="${cnt }">${cnt }</option>
  	</c:forEach> 
</select>일<br/>
전화번호
<input type="text" id="tel1" style="ime-mode:disabled;" onkeypress="checkForNumber();"
			 size="5" maxlength="4"/>
<input type="text" id="tel2" style="ime-mode:disabled;" onkeypress="checkForNumber();"
			 size="5" maxlength="4"/>
<input type="text" id="tel3" style="ime-mode:disabled;" onkeypress="checkForNumber();"
			 size="5" maxlength="4"/><br/>
핸드폰번호
<input type="text" id="phone1" style="ime-mode:disabled;" onkeypress="checkForNumber();"
			 size="5" maxlength="4"/>
<input type="text" id="phone2" style="ime-mode:disabled;" onkeypress="checkForNumber();"
			 size="5" maxlength="4"/>
<input type="text" id="phone3" style="ime-mode:disabled;" onkeypress="checkForNumber();"
			 size="5" maxlength="4"/><br/>
이메일
<input type="text" id="email1" />
<input type="text" id="email2" />
<select id="email3" onChange="changeMail()">
	<option value="" >직접입력</option>
		<c:forEach items="${emailcode }" var="code">
			<option value="${code }">${code }</option>			
		</c:forEach>
</select><br/>
우편번호
<input type="text" size="3" id="zip1" onclick="addressClick(this.form)"/> - 
<input type="text" size="3" id="zip2" onclick="addressClick(this.form)"/> 
<input type="button" value="우편번호찾기" onclick="checkZipcode(this.form)"/><br/>
주소
<input type="text" value="${profile.member_address1 }" name="member_address1" id="add1" onclick="addressClick(this.form)"/><br/> 
상세주소
<input type="text" value="${profile.member_address2 }" name="member_address2" id="add2" onclick="addressClick(this.form)"/> <br/>
메일링
수신<input type="radio" value="1"  name="member_emailyn"/>
 비수신<input type="radio" value="2" name="member_emailyn"/> <br /> 
SMS
수신<input type="radio" value="1" name="member_smsyn" />
비수신<input type="radio" value="2" name="member_smsyn" />
<input type="button" value="수정완료" onclick="updateCheck()"/>
<input type="button" value="취소" onclick="location.href='/web/'"/>
</form>
<!--------------------------------------   삽입 끝       ------------------------------------>
</div> 

<!-- 하단 이용약관, 고객센터, 회사정보 등의 정보를 include로 삽입 -->
<div style="position:absolute; left:0; top:1200px; width:100%; height:80px; ">
<%@ include file="../bottom.jsp"%>
</div>
</body>
</html>